<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ogre_glTF: C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/src/Ogre_glTF_OgreResource.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ogre_glTF
   </div>
   <div id="projectbrief">glTF import library for Ogre</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_ogre__gl_t_f___ogre_resource_8cpp_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Ogre_glTF_OgreResource.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;Ogre_glTF_OgreResource.hpp&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keywordtype">void</span> Ogre_glTF::GlbFile::readFromStream(Ogre::DataStreamPtr&amp; stream)</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;{</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;    data.resize(stream-&gt;size());</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;    stream-&gt;read(reinterpret_cast&lt;void*&gt;(data.data()), data.size());</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a8d09ec646fc05af0d63730b99b11e0e3">calculateSize</a>() &lt; 20) <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;GLB file needs to be at least 20 bytes long. This cannot be possibly valid!&quot;</span>);</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;        <span class="keywordtype">char</span> magic[5];</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        memcpy(magic, <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a3f9682be0696572d73b9a50020ea8070">getData</a>(), 4);</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        magic[4] = 0;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <span class="keywordflow">if</span>(std::string(magic) != <span class="stringliteral">&quot;glTF&quot;</span>) <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;GLB files needs to start with 0x46546C67 \&quot;glTF\&quot; magic number!&quot;</span>);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    }</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;}</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#aed8efa1502e499ad8e264bdd045edd42">   18</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#aed8efa1502e499ad8e264bdd045edd42">Ogre_glTF::GlbFile::loadImpl</a>()</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keyword">auto</span> stream = Ogre::ResourceGroupManager::getSingleton().openResource(mName, mGroup, <span class="keyword">true</span>, <span class="keyword">this</span>);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    readFromStream(stream);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;}</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#a5ec116597334c084b992c23c76847c4b">   24</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a5ec116597334c084b992c23c76847c4b">Ogre_glTF::GlbFile::unloadImpl</a>()</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    data.clear();</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    data.resize(0);</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#a8d09ec646fc05af0d63730b99b11e0e3">   30</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a8d09ec646fc05af0d63730b99b11e0e3">Ogre_glTF::GlbFile::calculateSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getSize(); }</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#a1245ba1c2383cde294a69f74a3e0b512">   32</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a1245ba1c2383cde294a69f74a3e0b512">Ogre_glTF::GlbFile::GlbFile</a>(Ogre::ResourceManager* creator,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                            <span class="keyword">const</span> Ogre::String&amp; name,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                            Ogre::ResourceHandle handle,</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                            <span class="keyword">const</span> Ogre::String&amp; group,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                            <span class="keywordtype">bool</span> isManual,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                            Ogre::ManualResourceLoader* loader) :</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; Resource(creator, name, handle, group, isManual, loader)</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    createParamDictionary(<span class="stringliteral">&quot;GlbFile&quot;</span>);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#ac4c118830620b0d89f5bc74f6f50f0dd">   43</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#ac4c118830620b0d89f5bc74f6f50f0dd">Ogre_glTF::GlbFile::~GlbFile</a>() { GlbFile::unload(); }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#a3f9682be0696572d73b9a50020ea8070">   45</a></span>&#160;<span class="keyword">const</span> Ogre_glTF::GlbFile::byte* <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#a3f9682be0696572d73b9a50020ea8070">Ogre_glTF::GlbFile::getData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data.data(); }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file.html#af856b3a71a9591c3fb5fca07b61da553">   47</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html#af856b3a71a9591c3fb5fca07b61da553">Ogre_glTF::GlbFile::getSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> data.size(); }</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9c6f32e99a79e21bdeda66530c630620">   49</a></span>&#160;Ogre::Resource* <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9c6f32e99a79e21bdeda66530c630620">Ogre_glTF::GlbFileManager::createImpl</a>(<span class="keyword">const</span> Ogre::String&amp; name,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                                                      Ogre::ResourceHandle handle,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                                                      <span class="keyword">const</span> Ogre::String&amp; group,</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                                                      <span class="keywordtype">bool</span> isManual,</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                                                      Ogre::ManualResourceLoader* loader,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                                                      <span class="keyword">const</span> Ogre::NameValuePairList* createParams)</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">return</span> OGRE_NEW <a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html">GlbFile</a>(<span class="keyword">this</span>, name, handle, group, isManual, loader);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;}</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#ab52e0d903463635a91eaeefb923bedb4">   59</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#ab52e0d903463635a91eaeefb923bedb4">Ogre_glTF::GlbFileManager::GlbFileManager</a>()</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    mResourceType = <span class="stringliteral">&quot;GlbFile&quot;</span>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    mLoadOrder  = 2;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    Ogre::ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, <span class="keyword">this</span>);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;}</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#aa5d6d9beda468a81f609a675862fcfe8">   66</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#aa5d6d9beda468a81f609a675862fcfe8">Ogre_glTF::GlbFileManager::~GlbFileManager</a>() { Ogre::ResourceGroupManager::getSingleton()._unregisterResourceManager(mResourceType); }</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a00d534d4810fb5316d5cc4b5ff0d0a7b">   68</a></span>&#160;Ogre_glTF::GlbFilePtr <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a00d534d4810fb5316d5cc4b5ff0d0a7b">Ogre_glTF::GlbFileManager::load</a>(<span class="keyword">const</span> Ogre::String&amp; name, <span class="keyword">const</span> Ogre::String&amp; group)</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;{</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">auto</span> file = createOrRetrieve(name, group).first.staticCast&lt;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file.html">GlbFile</a>&gt;();</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    file-&gt;load();</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">return</span> file;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">Ogre_glTF::GlbFileManager</a>* Ogre::Singleton&lt;Ogre_glTF::GlbFileManager&gt;::msSingleton = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9cf96803b0add7c98cd67f044d2e346b">   78</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">Ogre_glTF::GlbFileManager</a>&amp; <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9cf96803b0add7c98cd67f044d2e346b">Ogre_glTF::GlbFileManager::getSingleton</a>() { <span class="keywordflow">return</span> *msSingleton; }</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#add2684082a846eb8066eeb492380cb97">   80</a></span>&#160;<a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html">Ogre_glTF::GlbFileManager</a>* <a class="code" href="class_ogre__gl_t_f_1_1_glb_file_manager.html#add2684082a846eb8066eeb492380cb97">Ogre_glTF::GlbFileManager::getSingletonPtr</a>() { <span class="keywordflow">return</span> msSingleton; }</div><div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a00d534d4810fb5316d5cc4b5ff0d0a7b"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a00d534d4810fb5316d5cc4b5ff0d0a7b">Ogre_glTF::GlbFileManager::load</a></div><div class="ttdeci">virtual GlbFilePtr load(const Ogre::String &amp;name, const Ogre::String &amp;group)</div><div class="ttdoc">Load a GLB and return a GlbFile object (using a smart pointer) </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00068">Ogre_glTF_OgreResource.cpp:68</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_aa5d6d9beda468a81f609a675862fcfe8"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#aa5d6d9beda468a81f609a675862fcfe8">Ogre_glTF::GlbFileManager::~GlbFileManager</a></div><div class="ttdeci">virtual ~GlbFileManager()</div><div class="ttdoc">Will release the singleton. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00066">Ogre_glTF_OgreResource.cpp:66</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_af856b3a71a9591c3fb5fca07b61da553"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#af856b3a71a9591c3fb5fca07b61da553">Ogre_glTF::GlbFile::getSize</a></div><div class="ttdeci">size_t getSize() const override</div><div class="ttdoc">Get the number of bytes stored. This is effectivly the size of the vector. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00047">Ogre_glTF_OgreResource.cpp:47</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_aed8efa1502e499ad8e264bdd045edd42"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#aed8efa1502e499ad8e264bdd045edd42">Ogre_glTF::GlbFile::loadImpl</a></div><div class="ttdeci">void loadImpl() override</div><div class="ttdoc">Ogre resource API: called by &quot;load&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00018">Ogre_glTF_OgreResource.cpp:18</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html">Ogre_glTF::GlbFile</a></div><div class="ttdoc">Represet a GlbFile resource as outputed by the resource manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8hpp_source.html#l00011">Ogre_glTF_OgreResource.hpp:11</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a9cf96803b0add7c98cd67f044d2e346b"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9cf96803b0add7c98cd67f044d2e346b">Ogre_glTF::GlbFileManager::getSingleton</a></div><div class="ttdeci">static GlbFileManager &amp; getSingleton()</div><div class="ttdoc">Return the single instance of the manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00078">Ogre_glTF_OgreResource.cpp:78</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_a3f9682be0696572d73b9a50020ea8070"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#a3f9682be0696572d73b9a50020ea8070">Ogre_glTF::GlbFile::getData</a></div><div class="ttdeci">const byte * getData() const</div><div class="ttdoc">Get the address of the data. This is effectively the start of the underlying vector. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00045">Ogre_glTF_OgreResource.cpp:45</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_a5ec116597334c084b992c23c76847c4b"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#a5ec116597334c084b992c23c76847c4b">Ogre_glTF::GlbFile::unloadImpl</a></div><div class="ttdeci">void unloadImpl() override</div><div class="ttdoc">Called by unload. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00024">Ogre_glTF_OgreResource.cpp:24</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html">Ogre_glTF::GlbFileManager</a></div><div class="ttdoc">File manager. initialized by the plugin, this is for Ogre, not for you. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8hpp_source.html#l00055">Ogre_glTF_OgreResource.hpp:55</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_add2684082a846eb8066eeb492380cb97"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#add2684082a846eb8066eeb492380cb97">Ogre_glTF::GlbFileManager::getSingletonPtr</a></div><div class="ttdeci">static GlbFileManager * getSingletonPtr()</div><div class="ttdoc">Return the pointer to the single instance of the manager. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00080">Ogre_glTF_OgreResource.cpp:80</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_ac4c118830620b0d89f5bc74f6f50f0dd"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#ac4c118830620b0d89f5bc74f6f50f0dd">Ogre_glTF::GlbFile::~GlbFile</a></div><div class="ttdeci">virtual ~GlbFile()</div><div class="ttdoc">Resource unloading, will dispose of memory. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00043">Ogre_glTF_OgreResource.cpp:43</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_a9c6f32e99a79e21bdeda66530c630620"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#a9c6f32e99a79e21bdeda66530c630620">Ogre_glTF::GlbFileManager::createImpl</a></div><div class="ttdeci">Ogre::Resource * createImpl(const Ogre::String &amp;name, Ogre::ResourceHandle handle, const Ogre::String &amp;group, bool isManual, Ogre::ManualResourceLoader *loader, const Ogre::NameValuePairList *createParams) override</div><div class="ttdoc">This effectively create a resource. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00049">Ogre_glTF_OgreResource.cpp:49</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_manager_html_ab52e0d903463635a91eaeefb923bedb4"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file_manager.html#ab52e0d903463635a91eaeefb923bedb4">Ogre_glTF::GlbFileManager::GlbFileManager</a></div><div class="ttdeci">GlbFileManager()</div><div class="ttdoc">Create the GlbFileManager. will also initialize the singleton. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00059">Ogre_glTF_OgreResource.cpp:59</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_a1245ba1c2383cde294a69f74a3e0b512"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#a1245ba1c2383cde294a69f74a3e0b512">Ogre_glTF::GlbFile::GlbFile</a></div><div class="ttdeci">GlbFile(Ogre::ResourceManager *creator, const Ogre::String &amp;name, Ogre::ResourceHandle handle, const Ogre::String &amp;group, bool isManual=false, Ogre::ManualResourceLoader *loader=nullptr)</div><div class="ttdoc">Construct a resource. This is intened to be done by OgreResourceManager, not by you really...</div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00032">Ogre_glTF_OgreResource.cpp:32</a></div></div>
<div class="ttc" id="class_ogre__gl_t_f_1_1_glb_file_html_a8d09ec646fc05af0d63730b99b11e0e3"><div class="ttname"><a href="class_ogre__gl_t_f_1_1_glb_file.html#a8d09ec646fc05af0d63730b99b11e0e3">Ogre_glTF::GlbFile::calculateSize</a></div><div class="ttdeci">size_t calculateSize() const override</div><div class="ttdoc">Return how many bytes are stored. </div><div class="ttdef"><b>Definition:</b> <a href="_ogre__gl_t_f___ogre_resource_8cpp_source.html#l00030">Ogre_glTF_OgreResource.cpp:30</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>Ogre_glTF_OgreResource.cpp</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
